package com.ruoyi.basic.domain;

import com.baomidou.mybatisplus.annotation.*;

import javax.validation.constraints.NotBlank;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.mybatisplus.core.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;

import java.util.Date;

/**
 * 职称聘任对象 basic_positional
 * 
 * @author ruoyi
 * @date 2021-12-23
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("basic_positional")
public class BasicPositional extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long positionalId;

    /** 用户id */
    private Long userId;

    @TableField(exist = false)
    private String userNo;

    @TableField(exist = false)
    @Excel(name = "员工姓名")
    private String userName;

    @TableField(exist = false)
    @Excel(name = "身份证号")
    private String idCard;

    @TableField(exist = false)
    private Long deptId;

    /** 职称等级 */
    @Excel(name = "职称等级", dictType = "basic_positional_type", comboDict = "basic_positional_type")
    private String positionalType;

    /** 取得时间 */
    @Excel(name = "取得时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String obtainTime;

    /** 聘任时间 */
    @Excel(name = "聘任时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String engageTime;

    /** 附件地址 */
    private String fileUrl;

    /** 删除标志 */
    @TableLogic
    private String delFlag;

}
